.class final Lorg/microemu/android/device/ui/AndroidDisplayableUI$1;
.super Ljava/lang/Object;
.source "AndroidDisplayableUI.java"

# interfaces
.implements Ljava/util/Comparator;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lorg/microemu/android/device/ui/AndroidDisplayableUI;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x8
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Comparator",
        "<",
        "Lorg/microemu/device/ui/CommandUI;",
        ">;"
    }
.end annotation


# direct methods
.method constructor <init>()V
    .locals 0

    .prologue
    .line 53
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public bridge synthetic compare(Ljava/lang/Object;Ljava/lang/Object;)I
    .locals 1
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 53
    check-cast p1, Lorg/microemu/device/ui/CommandUI;

    .end local p1
    check-cast p2, Lorg/microemu/device/ui/CommandUI;

    .end local p2
    invoke-virtual {p0, p1, p2}, Lorg/microemu/android/device/ui/AndroidDisplayableUI$1;->compare(Lorg/microemu/device/ui/CommandUI;Lorg/microemu/device/ui/CommandUI;)I

    move-result v0

    return v0
.end method

.method public compare(Lorg/microemu/device/ui/CommandUI;Lorg/microemu/device/ui/CommandUI;)I
    .locals 2
    .parameter "first"
    .parameter "second"

    .prologue
    .line 56
    invoke-interface {p1}, Lorg/microemu/device/ui/CommandUI;->getCommand()Ljavax/microedition/lcdui/Command;

    move-result-object v0

    invoke-virtual {v0}, Ljavax/microedition/lcdui/Command;->getPriority()I

    move-result v0

    invoke-interface {p2}, Lorg/microemu/device/ui/CommandUI;->getCommand()Ljavax/microedition/lcdui/Command;

    move-result-object v1

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Command;->getPriority()I

    move-result v1

    if-ne v0, v1, :cond_0

    .line 57
    const/4 v0, 0x0

    .line 61
    :goto_0
    return v0

    .line 58
    :cond_0
    invoke-interface {p1}, Lorg/microemu/device/ui/CommandUI;->getCommand()Ljavax/microedition/lcdui/Command;

    move-result-object v0

    invoke-virtual {v0}, Ljavax/microedition/lcdui/Command;->getPriority()I

    move-result v0

    invoke-interface {p2}, Lorg/microemu/device/ui/CommandUI;->getCommand()Ljavax/microedition/lcdui/Command;

    move-result-object v1

    invoke-virtual {v1}, Ljavax/microedition/lcdui/Command;->getPriority()I

    move-result v1

    if-ge v0, v1, :cond_1

    .line 59
    const/4 v0, -0x1

    goto :goto_0

    .line 61
    :cond_1
    const/4 v0, 0x1

    goto :goto_0
.end method
